﻿using System;
using MarkdownRow.Views;

namespace MarkdownRow.Assets;

[Serializable]
public class Doc
{
    public DocItem[] Using { get; set; } = Array.Empty<DocItem>();
    public DocItem[] Font { get; set; } = Array.Empty<DocItem>();
    public DocItem[] Paragraph { get; set; } = Array.Empty<DocItem>();

    public static Doc Default => new()
    {
        Font = HelperClass.FontHelper,
        Using = HelperClass.UsingHelper,
        Paragraph = HelperClass.ParagraphHelper
    };
}

public class DocItem
{
    public string Name { get; set; }
    public string Description { get; set; }
    public string Text { get; set; }

    public DocItem(string name, string description, string text)
    {
        Name = name;
        Description = description;
        Text = text;
    }
}